<?php
// include the file containing initialization of the database and session
include_once('config.php');

$user = Session::user();

$data = array (
	"logged_in" 			=> Session::is_logged_in(),
	"contents" 				=> "edit_info_view.php",
	"user_id"				=> $user->id,
	"name"	 				=> $user->name,
	"address"				=> $user->address,
	"hometown"				=> $user->hometown,
	"current_city"			=> $user->current_city,
	"gender"				=> $user->gender,
	"birthdate"				=> date('Y-m-d',strtotime($user->birthdate)),
	"about_me"				=> $user->about_me,
	"relationship_status"	=> $user->relationship_status,
	"email_ad1"				=> $user->email_ad1,
	"email_ad2"				=> $user->email_ad2,
	"phone_number1"			=> $user->phone_number1,
	"phone_number2"			=> $user->phone_number2,
	"website"				=> $user->website
);

$index_view = new Template('layout.php',$data);
$index_view->render();

?>